import os
import platform
import subprocess
def open_folder(path):
    if platform.system() == "Windows": # Windows
        os.startfile(path)
    elif platform.system() == "Darwin": # macOS
        subprocess.Popen(["open", path])
    else: # Linux, Unix, etc.
        subprocess.Popen(["xdg-open", path])

# Example usage:
open_folder("D:/dev/wonderfull-python/wonderfull-pyhton/ch1-file")